﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="prodmanager.ascx.cs" Inherits="administrator_usercontrol_prodmanager" %>
<table style="width:100%;">
    <tr>
        <td colspan="3">
            Quản lý sản phẩm</td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" 
                BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                CellSpacing="2" ShowFooter="True">
                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <Columns>
                    <asp:ImageField DataImageUrlField="Anh" 
                        DataImageUrlFormatString="../../images/{0}" HeaderText="Hình">
                    </asp:ImageField>
                    <asp:BoundField DataField="MaSanPham" HeaderText="Mã" />
                    <asp:BoundField DataField="TenSanPham" HeaderText="Tên" />
                    <asp:BoundField DataField="TenLoaiSanPham" HeaderText="Loại" />
                    <asp:BoundField DataField="Gia" HeaderText="Giá" />
                    <asp:BoundField DataField="SoTon" HeaderText="Số tồn" />
                    <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbSua" CommandName="Edit" CommandArgument='<%# Eval("ID") %>' CausesValidation="false">Sửa</asp:LinkButton>
                        </ItemTemplate>       
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbXoa" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' CausesValidation="false">Xóa</asp:LinkButton>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:HyperLink runat="server" ID="hplThem" NavigateUrl="product.aspx?cm=insert">Thêm</asp:HyperLink> 
                        </FooterTemplate>
                    </asp:TemplateField>
                </Columns>
              
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
              
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
